﻿<UserControl x:Class="DiscoveryLogic.Analytics.Modules.DataImport.PubImporter"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="Auto" Width="Auto" MinHeight="550" Loaded="UserControl_Loaded">
    <Grid Margin="5">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="125"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="34"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="34"/>
            <RowDefinition Height="34"/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>

        <Label
            Grid.Row="0" Grid.Column="0"
            VerticalAlignment="Center" Margin="5,0,0,0">
            Mapping field (keys):
        </Label>
        <StackPanel
            Grid.Row="0" Grid.Column="1"
            HorizontalAlignment="Left" Margin="5,0,5,0"
            VerticalAlignment="Center" Orientation="Horizontal">
            <RadioButton x:Name="rdPMID" Content="PMID"/>
            <RadioButton x:Name="rdWosID" Content="Wos ID(Source ID)" Margin="5,0,5,0"/>
        </StackPanel>

        <TextBox 
            Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"
            x:Name="txtKeys" Margin="5" AcceptsReturn="True"
            TextWrapping="Wrap" VerticalAlignment="Stretch"/>
        
        <RadioButton
            Grid.Row="2" Grid.Column="0" VerticalAlignment="Center"
            Margin="5,0,0,0" x:Name="rdNew" IsChecked="True" Checked="rdNew_Checked">
            New network:
        </RadioButton>
        <TextBox
            Grid.Row="2" Grid.Column="1" VerticalAlignment="Center"
            Margin="5,0,5,0" x:Name="txtNetworkName"></TextBox>
        
        <RadioButton
            Grid.Row="3" Grid.Column="0" VerticalAlignment="Center"
            Margin="5,0,0,0" x:Name="rdExist" IsChecked="False" Checked="rdExist_Checked">
            Existing network:
        </RadioButton>
        <ComboBox
            Grid.Row="3" Grid.Column="1" VerticalAlignment="Center"
            Margin="5,0,5,0" x:Name="cboExistNetworks"/>

        <StackPanel 
            Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2"
            Orientation="Horizontal" VerticalAlignment="Center"
            HorizontalAlignment="Right">
            <Button x:Name="btnCancel" Content="Cancel" Width="66" Margin="0,0,5,0" Click="btnCancel_Click" />
            <Button x:Name="btnOK" Content="OK" Width="66" Margin="0,0,5,0" Click="btnOK_Click" />
        </StackPanel>
    </Grid>
</UserControl>
